﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI.Master" AutoEventWireup="true"
    CodeBehind="ScriptBrowser.aspx.cs" Inherits="IPSWeb.ScriptBrowser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
   <p>
       Here you can manage all your scripts, edit them (by click on the script name) or
       <a href="ScriptEditor.aspx">Create New Script</a>.<br />
       For security reasons, this list include only files with &quot;.ps1&quot; extension.</p>
   <ul>
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
        <ItemTemplate>
        <li><a href="ScriptEditor.aspx?path=<%# HttpUtility.UrlEncode(Convert.ToString(Eval("Path"))) %>"><%# Eval("ScriptName") %></a> - <a href="default.aspx?ScriptPath=<%# HttpUtility.UrlEncode(Convert.ToString(Eval("Path"))) %>">Execute Script as Commands Collection (Doesn't required to change the ExecutionPolicy)</a></li>
        </ItemTemplate>
        </asp:Repeater>
    </ul>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetPSScriptsInDirectory"
        TypeName="IPSWeb.Logic.IOManager"></asp:ObjectDataSource>
</asp:Content>
